Use PESetNthGroupSortField to set one of the group sort fields in the specified report. This function can only be used to modify an existing sort field and direction when the sort field number, name, and direction are known.
Note: Note: PESetNthGroupSortField cannot be used to create a new sort field.
The function can also be used as one of a series of functions (PEGetNGroupSortFields, called once; PEGetNthGroupSortField, or PEGetHandleString, called as many times as needed to identify the correct group sort field; and PESetNthGroupSortField called once, when the correct group sort field is identified). The series can be used in a Custom
BOOL CRPE_API PESetNthGroupSortField (
short printJob,
short sortFieldN,
const char FAR *name,
short direction );
Specifies the print job for which you want to set a group sort field. | |
Specifies the 0 | |
Specifies a pointer to the null | |
Specifies the sort directions. Use one of the PE_SF_XXX Sort Order Constants. |
This function should be called before PEStartPrintJob, or the results may be inconsistent or unexpected.
Declare Function PESetNthGroupSortField Lib "crpe32.dll" ( _
ByVal printJob As Integer, ByVal sortFieldN As Integer, _
ByVal SortGroupName As String, ByVal Direction As Integer ) As Integer
function PESetNthGroupSortField (
printJob: Word;
sortFieldN: smallint;
name: PChar;
direction: smallint
): Bool stdcall;
EXTERN CLOGICAL PESetNthGroupSortField (CWORD, CWORD, CSTRING, CWORD) CRPE.DLL
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |